var point = "<div style='width:15px;height:15px;background-color:rgb(225,103,0);color:#fff;font-weight:bold;border-radius:25px;line-height:15px;text-align:center;float:left;margin:0 4px 0 -6px;'>!</div>";

var flag = 0;

function testStr(){
   var phone = document.getElementById("str");
   var str = phone.value;
   var massge = document.getElementById("s2");
   if(str.length==0){
	   phone.style.border = "1px solid rgb(255,103,0)";
	   massge.innerHTML = point+"请输入验证码"; 
   }else{
   	flag = 1;
   }
}

function clearMassge(){
	var massge =  document.getElementById("s2");
	massge.innerHTML = ""; 
    document.getElementById("str").style.border = "1px solid rgb(169,169,169)";
}

function checkMassge(){
	if(flag == 1){
		window.location.href = "setPass.html";
	}
}


